package org.jeecg.modules.golf.user.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author jiguansheng
 * @date 2020/11/1
 * 学员事件
 **/
@Getter
public class TraineeEvent extends ApplicationEvent {

    /**
     * 操作 1 新增 、2编辑 、3删除
     */
    private Integer operateType;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public TraineeEvent(Object source,Integer operateType) {
        super(source);
        this.operateType = operateType;
    }
}
